package com.netease.spring.ch2;

import com.netease.spring.exceptions.PerformanceException;

public class Juggler implements Performer {
    private int beanBags = 3;

    public Juggler() {
        super();
    }

    public Juggler(int beanBags) {
        super();
        this.beanBags = beanBags;
    }

    /**
     * @return the beanBags
     */
    public int getBeanBags() {
        return beanBags;
    }

    /**
     * @param beanBags
     *            the beanBags to set
     */
    public void setBeanBags(int beanBags) {
        this.beanBags = beanBags;
    }

    @Override
    public void perform() throws PerformanceException {
        System.out.println("Juggler " + beanBags + " beanBags");
    }

}
